#!/usr/bin/env bash

set -e

source "$APP_HOME/ienv/bin/activate"

cd $APP_HOME/iFile


ifile init
ifile db init

case $1 in
    web)
    ifile run web;;
esac

exec "$@"
